package com.avic.process.utils.change;

public class CreatFileServiceProxy implements CreatFileService {
  private String _endpoint = null;
  private CreatFileService creatFileService = null;
  
  public CreatFileServiceProxy() {
    _initCreatFileServiceProxy();
  }
  
  public CreatFileServiceProxy(String endpoint) {
    _endpoint = endpoint;
    _initCreatFileServiceProxy();
  }
  
  private void _initCreatFileServiceProxy() {
    try {
      creatFileService = (new CreatFileServiceServiceLocator()).getCreatFileService();
      if (creatFileService != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)creatFileService)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)creatFileService)._getProperty("javax.xml.rpc.service.endpoint.address");
      }
      
    }
    catch (javax.xml.rpc.ServiceException serviceException) {}
  }
  
  public String getEndpoint() {
    return _endpoint;
  }
  
  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (creatFileService != null)
      ((javax.xml.rpc.Stub)creatFileService)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    
  }
  
  public CreatFileService getCreatFileService() {
    if (creatFileService == null)
      _initCreatFileServiceProxy();
    return creatFileService;
  }
  
  public java.lang.String creatFile(java.lang.String item_id, java.lang.String rev) throws java.rmi.RemoteException{
    if (creatFileService == null)
      _initCreatFileServiceProxy();
    return creatFileService.creatFile(item_id, rev);
  }
  
  
}